using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SunshineFarmWord
{
    [CreateAssetMenu(fileName = "CultivateData", menuName = "Custom/Elements/Crops/CultivateData")]
    public class CultivateSO : ScriptableObject
    {
        //生长状态类
        [Serializable]
        public class CultivateGrowData
        {
            [field: SerializeField, Header("生长图")]
            public Sprite skin;
            [field: SerializeField, Header("下一状态需要的时间")]
            public float lastTime = 30f;
            [field: SerializeField, Header("是否为收获状态")]
            public bool isCultivate = false;
            [field: SerializeField, Header("是否浇水才能进行下一状态")]
            public bool wateringLast = false;
        }

        [Serializable]
        public class CultivateItemData
        {
            [field: SerializeField, Header("农作物名称")]
            public string name;
            // 种子图标
            [field: SerializeField, Header("种子图标")]
            public Sprite seedIcon;
            // 收获图标
            [field: SerializeField, Header("收获图标")]
            public Sprite cultivateIcon;
            // 生长状态列表
            [field: SerializeField, Header("成长状态列表")]
            public List<CultivateGrowData> growthStateList;
        }

        [field: SerializeField, Header("农作物列表")]
        public List<CultivateItemData> cultivateList;

        [field: SerializeField, Header("种子通用图")]
        public Sprite seedsGgeneric;
    }
}
